<template>
	<view class="content">
		<view class="logo">
			<image src="../../static/logo-01.png" mode="widthFix"></image>
		</view>
		<view class="title">
			<text>润隆汇</text>
		</view>
		<view class="title" style="padding-top: 20upx;">
			<text>版本号: {{verison}}</text>
		</view>
		<view style="margin-top: 40upx;">
			<uni-list>
				<uni-list-item title="隐私政策" showArrow link />
				<uni-list-item title="用户协议" showArrow link />
				<uni-list-item title="退款协议" showArrow link />
			</uni-list>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				verison: "1.0.0"
			}
		},
		methods: {
			async getVersion() {
				const {
					status,
					data,
					msg
				} = await this.$api.app.getVersion()
				if (status == 200) {
					console.log(data)
					this.verison = data
				}
			}
		},
		onLoad() {
			this.getVersion()
		}
	}
</script>

<style scoped lang="less">
	.content {
		width: 100%;
		height: 100%;

		//页面logo样式
		.logo {
			width: 200upx;
			height: 200upx;
			margin: auto;
			margin-top: 30upx;

			image {
				margin: auto;
				width: 200upx;
				height: 200upx;
				border-radius: 20%;
			}
		}

		//系统主题
		.title {
			width: 200upx;
			height: 30upx;
			margin: auto;
			padding-top: 40upx;
			text-align: center;
			line-height: 30upx;
		}
	}
</style>